package cn.tedu.csmall.product.pojo.entity;

import java.util.Date;
import java.io.Serializable;

/**
 * 属性(Attribute)实体类
 *
 * @author makejava
 * @since 2022-09-24 15:39:16
 */
public class Attribute implements Serializable {
    private static final long serialVersionUID = -65305336604510709L;
    /**
     * 记录id
     */
    private Long id;
    /**
     * 所属属性模版id
     */
    private Integer templateId;
    /**
     * 属性名称
     */
    private String name;
    /**
     * 简介（某些属性名称可能相同，通过简介补充描述）
     */
    private String description;
    /**
     * 属性类型，1=销售属性，0=非销售属性
     */
    private Integer type;
    /**
     * 输入类型，0=手动录入，1=单选，2=多选，3=单选（下拉列表），4=多选（下拉列表）
     */
    private Integer inputType;
    /**
     * 备选值列表
     */
    private String valueList;
    /**
     * 计量单位
     */
    private String unit;
    /**
     * 自定义排序序号
     */
    private Integer sort;
    /**
     * 是否允许自定义，1=允许，0=禁止
     */
    private Integer isAllowCustomize;

    @Override
    public String toString() {
        return "Attribute{" +
                "id=" + id +
                ", templateId=" + templateId +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                ", type=" + type +
                ", inputType=" + inputType +
                ", valueList='" + valueList + '\'' +
                ", unit='" + unit + '\'' +
                ", sort=" + sort +
                ", isAllowCustomize=" + isAllowCustomize +
                '}';
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Integer templateId) {
        this.templateId = templateId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getInputType() {
        return inputType;
    }

    public void setInputType(Integer inputType) {
        this.inputType = inputType;
    }

    public String getValueList() {
        return valueList;
    }

    public void setValueList(String valueList) {
        this.valueList = valueList;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getIsAllowCustomize() {
        return isAllowCustomize;
    }

    public void setIsAllowCustomize(Integer isAllowCustomize) {
        this.isAllowCustomize = isAllowCustomize;
    }
}

